package com.chaochis.wind.util.id_generator;

import com.chaochis.wind.util.id_generator.generator_impl.JwtTokenGenerator;
import com.chaochis.wind.util.id_generator.generator_impl.UuidGenerator;

public class IdGeneratorFactory {
   public static IdGenerator createIdGenerator(IdGeneratorEnum idGeneratorEnum) {
      return switch (idGeneratorEnum) {
         case ID_GENERATOR_UUID_ENUM -> new UuidGenerator();
         case ID_GENERATOR_JWTTOKEN_ENUM -> new JwtTokenGenerator();
      };
   }

   public enum IdGeneratorEnum {
      ID_GENERATOR_UUID_ENUM,
      ID_GENERATOR_JWTTOKEN_ENUM;
   }
}
